/**
 * routes
 */

module.exports = [
    {
        path: '/',
        redirect: '/dashboard'
    },
    {
        path: '/dashboard/repair',
        component: require('./pages/dashboard'),
    },
    {
        path: '/dashboard',
        component: require('./pages/dashboard'),
    },
    {
        path: '/login',
        component: require('./pages/login'),
        meta: {
            auth: false
        }
    },
    {
        path: '/roles',
        component: require('./pages/role'),
        meta: {
            auth: true
        }
    },
    {
        path: '/users',
        component: require('./pages/user'),
        meta: {
            auth: true
        }
    },
    {
        path: '/customers',
        component: require('./pages/customer'),
        meta: {
            auth: true
        }
    },
    {
        path: '/types',
        component: require('./pages/type'),
        meta: {
            auth: true
        }
    },
    {
        path: '/tickets/sell',
        component: require('./pages/ticket-front'),
        meta: {
            auth: true
        }
    },
    {
        path: '/tickets/apply',
        component: require('./pages/ticket-apply'),
        meta: {
            auth: true
        }
    },
    {
        path: '/tickets/apply-list',
        component: require('./pages/apply'),
        meta: {
            auth: true
        }
    },
    {
        path: '/ticket-log',
        component: require('./pages/ticket-log'),
        meta: {
            auth: true
        }
    },
    {
        path: '/sellout',
        component: require('./pages/sellout'),
        meta: {
            auth: true
        }
    },
    {
        path: '/tickets/check',
        component: require('./pages/ticket'),
        meta: {
            auth: true
        }
    },
    {
        path: '/tickets',
        component: require('./pages/ticket'),
        meta: {
            auth: true
        }
    },
    {
        path: '/tickets/:apply_id',
        component: require('./pages/ticket-manage'),
        meta: {
            auth: true
        }
    },
    {
        path: '/tickets/create/:id',
        component: require('./pages/ticket-item'),
        meta: {
            auth: true
        }
    },
    {
        path: '/confirm',
        component: require('./pages/confirm'),
        meta: {
            auth: true
        }
    },
    {
        path: '/dates',
        component: require('./pages/specail-date'),
        meta: {
            auth: true
        }
    },
    {
        path: '/active',
        component: require('./pages/active'),
        meta: {
            auth: true
        }
    },
    {
        path: '/destory',
        component: require('./pages/ticket-destory'),
        meta: {
            auth: true
        }
    },
    {
        path: '/check/log',
        component: require('./pages/check-log'),
        meta: {
            auth: true
        }
    },
    {
        path: '/operation-logs',
        component: require('./pages/log'),
        meta: {
            auth: true
        }
    },
    {
        path: '/tickets/modify/:id',
        component: require('./pages/ticket-modify'),
        meta: {
            auth: true
        }
    }, {
        path: '/departments',
        component: require('./pages/department'),
        meta: {
            auth: true
        }
    }, {
        path: '/repairs',
        component: require('./pages/repair'),
        meta: {
            auth: true
        }
    }, {
        path: '/repairs/me',
        component: require('./pages/my-repair'),
        meta: {
            auth: true
        }
    },
    {
        path: '/repairs/statistic',
        component: require('./pages/repair-statistic'),
        meta: {
            auth: true
        }
    },
    {
        path: '/goods',
        component: require('./pages/good'),
        meta: {
            auth: true
        }
    },
    {
        path: '/batches',
        component: require('./pages/batch'),
        meta: {
            auth: true
        }
    }, {
        path: '/categories',
        component: require('./pages/category'),
    }, {
        path: '/categories/:id',
        component: require('./pages/category-item'),
    },
    {
        path: '*',
        component: require('./pages/404')
    }
];
